﻿using System.Collections.Generic;
using AdAggregator.Aggregator;
using AdAggregator.Website;
using RealEstateAggregator.Models.Parsers;
using RealEstateAggregator.Models.SearchData;
using RealEstateAggregator.Models.Websites;

namespace RealEstateAggregator.Models
{
    public class MyAggregator : BaseAggregator<MySearchData, MyAdvertisement>
    {
        private readonly List<IWebsite<MySearchData, MyAdvertisement>> websites =
           new List<IWebsite<MySearchData, MyAdvertisement>>
            {
               // new SzybkoPlWebsite(), 
                new OtoDomPlWebsite(new OtoDomPlParser()), 
                new DomiportaPlWebsite(new DomiportaPlParser())
            };

        public override IEnumerable<IWebsite<MySearchData, MyAdvertisement>> GetWebsites()
        {
            return websites;
        }
    }
}